Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

Notes/Domino 6 and 7 Forum

Notes/Domino 6 and 7 Forum


  

PreviousPrevious NextNext


~Helga Rehipitexflar 12.May.03 09:31 AM a Web browser
Notes Client 6.0.1 Windows 2000


Here is the code which is giving me problems:

The enviornment I am working with is multithreaded. My app extends NotesThread.

ses = new DXLSession();
// Initializing the session with user details.
ses.init(s.getUserName());

options = new DXLExportOptions();
options.setOutputCharacterSet(options.OUTPUTCHARSET_UTF8);
// this makes sure that the attachments are not exported .
options.setExportUninterpretedData(false);
DXLdb = new DXLDatabase(file, server);
DXLdb.open();

then I loop through each view get the view entries check if they are documents and for each I call

DXLExporter exporter = new DXLExporter(ses);

exporter.setExportOptions(options);
exporter.exportDXL(DXLdb, output,noteId);
// this is called for each loop, I dont have memory leaks as I use destroy on most of my notes objects properly.
exporter.destroy();

FileOutputStream fo = new FileOutputStream(
path + "\\Body.xml");
fo.write(output.toByteArray());
fo.flush();
fo.close();

the reason for using the xml this way is to convert the exported mail in to pdf with screen shots and text and paragraph formatting.

Hope you can find out why this crashes notes and sometimes I have Unknown DXLException , say after every 50-100 mails

In the end i clean up the code

ses.destroy();
options.destroy();
DXLdb.destroy();

When I run the garbage collection with verbose or

JavaVerboseGC=1

I get allocation failure qutie often, this just shows that I am trying to allocate big chunks of data. Probably this could provide some hints.

In my opinion, you can run the dxl exporter for mass exporting the database or a single view and then work with it in the local enviornment. But looping though each document and running the above steps seems to be a problem.

My heap size is
JavaMaxHeapSize=167108864

Can you also suggest me if its fine to increase the stack size eg.
JavaStackSize=4096000

If all this doesnt work then I will have to reimplement my code in c++ will that help as with java and dxl there is a native call , just to mention I have
JavaUserClasses=C:\progra~1\lotus\notes\DXLTools.jar
in my notes.ini.








  Document options
Print this pagePrint this page

 Search this forum

  Forum views and search
Date (threaded)
Date (flat)
With excerpt
Category
Platform
Release
Advanced search

 RSS feedsRSS
All forum posts RSS
All main topics RSS